import request from "../networks/request"

// 添加回答
export const addreply = (data) => {
    return request({
        url: '/reply/add',
        method: 'post',
        data:data,
    });
}

// 查找 <问题>  的回答
export const findReplyByIid = (data) => {
    return request({
        url: '/reply/findbyiid',
        method: 'get',
        params:data,
    });
}

// 发布的回答
export const findbyuid = (data) => {
    return request({
        url: '/reply/findbyuid',
        method: 'get',
        params:data,
    });
}

// 增加回答浏览量
export const replyBrowseUp = (data) => {
    return request({
        url: '/reply/browse/up',
        method: 'put',
        data
    });
}
